<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet"
	href="/jquery-easyui-1.5.2/themes/bootstrap/easyui.css"></link>
<link rel="stylesheet" href="/jquery-easyui-1.5.2/themes/icon.css"></link>
<link rel="stylesheet" href="/css/wholeStyle.css"></link>
<script type="text/javascript" src="/jquery-easyui-1.5.2/jquery.min.js"></script>
<script type="text/javascript"
	src="/jquery-easyui-1.5.2/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="/jquery-easyui-1.5.2/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="/js/initComponent.js"></script>
<script type="text/javascript" src="/js/publicJs.js"></script>
</head>
<body style="margin: 0; padding: 0">
<!-- <div id="content"></div> -->
	<div id="menu"  style="width:150px;">   
	    <div>新增</div>   
	    <div>修改</div>   
	    <div>删除</div>   
	    <div class="menu-sep"></div>   
	    <div>Exit</div>   
	</div>  
	<div id="insertMenu"  style="width:150px;">   
	    <div>保存</div>   
	    <div>放弃</div>   
	</div>  

	<div id="pp"
		style="background: #efefef; border: 1px solid #ccc; height: 30px;"></div>
	<!-- <div id="pp1" class="easyui-pagination" data-options="total:2000,pageSize:10" style="background:#efefef;border:1px solid #ccc;"></div>  -->
	<!-- 表单外层 -->
	<div class="form-warp">
		<form action="" id="form">
			<!-- 表单中的一行 -->
			<div class="form-children">
				<!-- 表单中的一项 -->
				<div class="form-item">
					<label for="no" class="label-blue">客户编号：</label> <input class="easyui-textbox"
						id="billNo" />
				</div>
				<div class="form-item">
					<label for="date">账款归属：</label> <input class="easyui-textbox"
						id="billDate" />
				</div>
				<div class="form-item">
					<label for="type">客户全称：</label> <input class="easyui-textbox"
						id="billStyleID" />
				</div>
				<div class="form-item">
					<label for="status">类别：</label> <input class="easyui-textbox" />
				</div>
			</div>
			<div class="form-children">
				<!-- 表单中的一项 -->
				<div class="form-item">
					<label for="emp">客户简称：</label> <input class="easyui-textbox"
						id="emp" />
				</div>
				<div class="form-item">
					<label for="dept">地区：</label> <input class="easyui-textbox"
						id="dept" />
				</div>
				<div class="form-item">
					<label for="maker">英文全称：</label> <input class="easyui-textbox"
						id="maker" />
				</div>
				<div class="form-item">
					<label for="permitter">币别：</label> <input class="easyui-textbox"
						id="permitter" />
				</div>
			</div>
		</form>
	</div>
	<div class="grid-warp">
		<div class="easyui-tabs" style="height: 200px; width: '100%';flex:1;">
			<div title="基本信息" style="height: 20px;">
				<form action="" id="form">
			<!-- 表单中的一行 -->
			<div class="form-children">
				<!-- 表单中的一项 -->
				<div class="form-item">
					<label for="no">负责人：</label> <input class="easyui-textbox"
						id="billNo" />
				</div>
				<div class="form-item">
					<label for="date">业务人员：</label> <input class="easyui-textbox"
						id="billDate" />
				</div>
				<div class="form-item">
					<label for="type">联系人：</label> <input class="easyui-textbox"
						id="billStyleID" />
				</div>
				<div class="form-item">
					<label for="status">税务登记号：</label> <input class="easyui-textbox" />
				</div>
			</div>
			<div class="form-children">
				<!-- 表单中的一项 -->
				<div class="form-item">
					<label for="emp">联系电话一：</label> <input class="easyui-textbox"
						id="emp" />
				</div>
				<div class="form-item">
					<label for="dept">联系电话二：</label> <input class="easyui-textbox"
						id="dept" />
				</div>
				<div class="form-item">
					<label for="maker">资本额：</label> <input class="easyui-textbox"
						id="maker"  />
				</div>
				<div class="form-item">
					<label for="permitter">行业别：</label> <input class="easyui-textbox"
						id="permitter" />
				</div>
			</div>
			<div class="form-children">
				<!-- 表单中的一项 -->
				<div class="form-item">
					<label for="emp">银行账号：</label> <input class="easyui-textbox"
						id="emp" />
				</div>
				<div class="form-item">
					<label for="dept">开户银行：</label> <input class="easyui-textbox"
						id="dept" />
				</div>
				<div class="form-item">
					<label for="maker">电子邮件：</label> <input class="easyui-textbox"
						id="maker" />
				</div>
				<div class="form-item">
					<label for="permitter">传真号码：</label> <input class="easyui-textbox"
						id="permitter" />
				</div>
			</div>
		</form>
			</div>
			<div title="销售信息" style="height: 20px;">
			<form action="" id="form">
			<!-- 表单中的一行 -->
			<div class="form-children">
				<!-- 表单中的一项 -->
				<div class="form-item">
					<label for="no">最初销售出库日：</label> <input class="easyui-datebox"
						id="billNo" />
				</div>
				<div class="form-item">
					<label for="date">折数：</label> <input class="easyui-textbox"
						id="billDate" />
				</div>
				<div class="form-item">
					<label for="type">单价是否含税：</label> <input class="easyui-textbox"
						id="billStyleID" />
				</div>
				<div class="form-item">
					<label for="status">售价等级：</label> <input class="isdisabled" />
				</div>
			</div>
			<div class="form-children">
				<!-- 表单中的一项 -->
				<div class="form-item">
					<label for="emp">最近销售出库日：</label> <input class="easyui-datebox"
						id="emp" />
				</div>
				<div class="form-item">
					<label for="dept">最初销售退货日：</label> <input class="easyui-datebox"
						id="dept" />
				</div>
				<div class="form-item">
					<label for="maker">最近销售退货日：</label> <input class="easyui-datebox"
						id="maker"  />
				</div>
				<div class="form-item">
					<label for="permitter">潜在客户编号：</label> <input class="easyui-textbox"
						id="permitter" />
				</div>
			</div>
			<div class="form-children">
				<!-- 表单中的一项 -->
				<div class="form-item">
					<label for="emp">最近拜访日：</label> <input class="easyui-datebox"
						id="emp" />
				</div>
				<div class="form-item">
					<label for="dept">客户建立日期：</label> <input class="easyui-datebox"
						id="dept" />
				</div>
				<div class="form-item">
					<label for="maker">预约拜访日：</label> <input class="easyui-datebox"
						id="maker" value="admin" />
				</div>
				<div class="form-item">
					<label for="permitter">终止交易日：</label> <input class="easyui-datebox"
						id="permitter" />
				</div>
			</div>
		</form>
			</div>
			<div title="收款信息" style="height: 20px;">
				<form action="" id="form">
			<!-- 表单中的一行 -->
			<div class="form-children">
				<!-- 表单中的一项 -->
				<div class="form-item">
					<label for="no">账款额度：</label> <input class="easyui-textbox
						id="billNo" />
				</div>
				<div class="form-item">
					<label for="date">剩余额度：</label> <input class="easyui-textbox"
						id="billDate" />
				</div>
				<div class="form-item">
					<label for="type">收款条件：</label> <input class="easyui-textbox"
						id="billStyleID" />
				</div>
				<div class="form-item">
					<label for="status">每月结账日：</label> <input class="easyui-textbox" />
				</div>
			</div>
			<div class="form-children">
				<!-- 表单中的一项 -->
				<div class="form-item">
					<label for="emp">期初预收款：</label> <input class="easyui-textbox"
						id="emp" />
				</div>
				<div class="form-item">
					<label for="dept">期初应收款：</label> <input class="easyui-textbox"
						id="dept" />
				</div>
				<div class="form-item">
					<label for="maker">期末预收款：</label> <input class="easyui-textbox"
						id="maker"  />
				</div>
				<div class="form-item">
					<label for="permitter">期末应收款：</label> <input class="easyui-textbox"
						id="permitter" />
				</div>
			</div>
			<div class="form-children">
				<!-- 表单中的一项 -->
				<div class="form-item">
					<label for="emp">信用等级：</label> <input class="easyui-textbox"
						id="emp" />
				</div>
				<div class="form-item">
					<label for="dept">未开票金额：</label> <input class="easyui-textbox"
						id="dept" />
				</div>
				<div class="form-item">
					<label for="maker">预收账款科目：</label> <input class="easyui-textbox"
						id="maker"  />
				</div>
				<div class="form-item">
					<label for="permitter">应收账款科目：</label> <input class="easyui-textbox"
						id="permitter" />
				</div>
			</div>
		</form>
			</div>
			<div title="地址" style="height: 20px;">
				<table id="cgqgd"></table>
			</div>
		</div>
	</div>
	
<!-- <span id="shenhe"></span> -->
</body>
<script type="text/javascript">

	$(function() {
		initMenu();
		$("#pp").pagination({
			height : 30,
			layout : [ 'sep' ],
			buttons : [ {
				iconCls : 'icon-my-first',
				handler : function() {
					alert("第一页");
				}
			},{
				iconCls : 'icon-my-prev',
				handler : function() {
				}
			},{
				iconCls : 'icon-my-next',
				handler : function() {
					closeDisabled();
				}
			},{
				iconCls : 'icon-my-last',
				handler : function() {
				}
			},{
				iconCls : 'icon-my-add',
				text : "新增",
				handler : function() {
					var tab=parent.$("#window-tabs").tabs("getSelected");
					changeTabStatus(tab,'新增');
					closeDisabled();
				}
			}, {
				iconCls : 'icon-my-update',
				text : "修改",
				handler : function() {
					alert("修改");
				}
			}, {
				iconCls : 'icon-my-delete',
				text : "删除",
				handler : function() {
					alert("删除");
				}
			}, {
				iconCls : 'icon-my-audit',
				text : "审核",
				handler : function() {
					alert("审核");
					$("#shenhe").hide();
				}
			} ]
		});
		$(".easyui-datebox").datebox("setValue",formatterDate(new Date()));
		$("form").find(".isdisabled").textbox();//先把从始至终为disabled 的控件初始化
		$("form").find(".isdisabled").textbox("disable");//再把他们设为disabled
		openDisabled();
		$("#cgqgd").datagrid({
			fit : true,
			rownumbers : true,
			columns : [ [ {
				field : 'lineId',
				title : "地址编号",
				width : 120,
				sortable:true
			}, {
				field : 'materialNo',
				title : "地址",
				width : 120,
				sortable:true
			}, {
				field : 'ac',
				title : "邮编",
				width : 120,
				sortable:true
			}, {
				field : 'ad',
				title : "联系人",
				width : 120,
				sortable:true
			}, {
				field : 'ad1',
				title : "联系人职称",
				width : 120
			}, {
				field : 'ad2',
				title : "联系电话",
				width : 150
			}, {
				field : 'ad23',
				title : "传真号码",
				width : 120
			}, {
				field : 'ada',
				title : "行走路线",
				width : 120
			}, {
				field : 'ads2',
				title : "备注",
				width : 120
			} ] ]
		});
		
	});
</script>
</html>